-- GENERATED SPELL FOR [Thorn Eater Ghoul] --


function spell0_7348(pUnit, Event) --@Ravenous Claw,Heal--
pUnit:FullCastSpellOnTarget(12538,pUnit)
pUnit:RegisterEvent('Sorts_7348', 666, 1)
end

function Sorts_7348(pUnit, Event)
local choix_sorts_7348 = math.random(0, 0)
if choix_sorts_7348 == 0 then
pUnit:RegisterEvent('spell0_7348', 1, 1)
end
end

function mob7348_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7348', math.random(1500, 3000), 1)
end

function mob7348_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7348_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7348_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7348, 1, 'mob7348_Action')
RegisterUnitEvent(7348, 2, 'mob7348_Leave')
RegisterUnitEvent(7348, 3, 'mob7348_Kill')
RegisterUnitEvent(7348, 4, 'mob7348_Die')
